## 可以导出所有 路由 router
from fastapi import APIRouter
from app.core.config import settings

api_router = APIRouter()

## 可以导出所有 路由 router
## 是一些基础路由
from app.api.base.auth_examples import router as auth_router
from app.api.base.system import router as system_router
from app.api.base.database import router as database_router


# 注册用户认证 路由（根据功能模块启用情况）
api_router.include_router(auth_router, prefix="/v1",tags=["用户认证"])
# 注册系统路由
api_router.include_router(system_router, prefix="/v1",tags=["系统管理"])
# 数据库管理API（只在启用数据库时注册）
if settings.enable_database:
    api_router.include_router(database_router, prefix="/v1",tags=["数据库管理"])


## 自己写的 新建功能路由·
# from app.api.v1.family.copywriting import router as copywriting_router
# api_router.include_router(copywriting_router, prefix="/v1", tags=["文案生成-copywriting"])



__all__ = ["api_router"]

